#!/usr/bin/env python3

import psutil

rootPercent = psutil.disk_usage('/').percent
bootPercent = psutil.disk_usage('/boot').percent

fsPercent = {'/': rootPercent, '/boot': bootPercent}

print('{0:6} {1}'.format('文件系统', '已用%'))
for i, j in sorted(fsPercent.items()):
    print('{0:10} {1:4.0f}%'.format(i, j))
